home *** CD-ROM | disk | FTP | other *** search
-
- <%
-
- Function GetLinEle(Origin , Sep1, Sep2)
- 'Parses a Line of text
- '<Sep1>Finds this text<Sep2>
- Dim Bpos
- Dim Epos
- Dim bDone
- bdone = true
- Bpos = InStr(1, Origin, Sep1, vbBinaryCompare)
- If Bpos = 0 Then bdone = False
- Epos = InStr(1, Origin, Sep2, vbBinaryCompare)
- If epos = 0 Then bdone = False
- Bpos = Bpos + Len(Sep1)
- If bdone = True then
- GetLinEle = Mid(Origin, Bpos, Epos - Bpos)
- else
- If bdone = False Then
- GetLinEle = ""
- end if
- end if
- End Function
-
-
- Function parseoneline (GetTheStr)
- 'parses normal text and returns HTMl formatted
- Start = 1
- whereis = 1
- NewHTMLStringWithBreaks = ""
- RemaindingHTMLString = GetTheStr
- RemaindingHTMLString = RemaindingHTMLString & chr(13)
- do until (whereis = 0)
- Whereis = InStr (1, RemaindingHTMLString, Chr(13))
- Chr13Position = Whereis - 1
- LineOfHTMLBeforeNextChr13 = Mid(RemaindingHTMLString, 1 , Whereis)
- Chr13Position = Whereis + 2
- LineOfHTMLAfterNextChr13 = Mid(RemaindingHTMLString, Chr13Position, Len(RemaindingHTMLString))
- RemaindingHTMLString = LineOfHTMLAfterNextChr13
- NewHTMLStringWithBreaks = NewHTMLStringWithBreaks & LineOfHTMLBeforeNextChr13 & "<br>"
- loop
- Response.Write("<font size=" & chr(34) & "2"& chr(34) & ">" & NewHTMLStringWithBreaks & "</font>")
- End Function
-
- %>